/*
 * @Author: yangxiaoqiang 
 * @Date: 2021-07-02 11:04:47 
 * @Last Modified by: yangxiaoqiang
 * @Last Modified time: 2021-07-12 09:12:52
 * @description 埋点监控 
 */

class Monitor {
   constructor(){

   }
}
export default {
   /**
    * 检查是否安装相关监控的webpack插件
    * @param {*} config 
    */ 
    check(config={},callback=()=>{}){
        if(window.MONITOR_PLUGIN){
            window.monitor = new Monitor()  
            callback(config) 
        }else{
            return new  Error('你需要先安装webpack-minotor-plugin')  
        }
    },
   autoBind(){}
}